home *** CD-ROM | disk | FTP | other *** search
/ SGI Freeware 1999 August / SGI Freeware 1999 August.iso / dist / fw_objc.idb / usr / freeware / include / objpak / cltn.h.z / cltn.h
Encoding:
C/C++ Source or Header  |  1999-07-16  |  1.9 KB  |  81 lines

  1.  
  2. /*
  3.  * Portable Object Compiler (c) 1997,98.  All Rights Reserved.
  4.  * $Id: cltn.h,v 1.11 1999/06/23 19:22:13 stes Exp $
  5.  */
  6.  
  7. /*
  8.  * This library is free software; you can redistribute it and/or modify it
  9.  * under the terms of the GNU Library General Public License as published 
  10.  * by the Free Software Foundation; either version 2 of the License, or
  11.  * (at your option) any later version.
  12.  *
  13.  * This program is distributed in the hope that it will be useful,
  14.  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  15.  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  16.  * GNU Library General Public License for more details.
  17.  *
  18.  * You should have received a copy of the GNU Library General Public License
  19.  * along with this program; if not, write to the Free Software
  20.  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  21.  */
  22.  
  23. #ifndef __CLTN_H__
  24. #define __CLTN_H__
  25.  
  26. #ifndef __OBJECT_INCLUDED__
  27. #define __OBJECT_INCLUDED__
  28. #include <stdio.h> /* FILE */
  29. #include "Object.h" /* Stepstone Object.h assumes #import */
  30. #endif
  31.  
  32. @interface Cltn : Object
  33. {
  34. }
  35. + with:(int)nArgs,...;
  36. + with:firstObject with:nextObject;
  37. + add:firstObject;
  38.  
  39. - (BOOL) includesAllOf:aCltn;
  40. - (BOOL) includesAnyOf:aCltn;
  41.  
  42. - addAll:aCltn;
  43. - addContentsOf:aCltn;
  44. - addContentsTo:aCltn;
  45. - removeAll:aCltn;
  46. - removeContentsFrom:aCltn;
  47. - removeContentsOf:aCltn;
  48.  
  49. - intersection:bag;
  50. - union:bag;
  51. - difference:bag;
  52.  
  53. - asSet;
  54. - asOrdCltn;
  55.  
  56. #if OBJC_BLOCKS
  57. - detect:aBlock;
  58. - detect:aBlock ifNone:noneBlock;
  59. - select:testBlock;
  60. - reject:testBlock;
  61. - collect:transformBlock;
  62. - (unsigned) count:aBlock;
  63. #endif /* OBJC_BLOCKS */
  64.  
  65.  
  66. - elementsPerform:(SEL)aSelector;
  67. - elementsPerform:(SEL)aSelector with:anObject;
  68. - elementsPerform:(SEL)aSelector with:anObject with:otherObject;
  69. - elementsPerform:(SEL)aSelector with:anObject with:otherObject with:thirdObj;
  70.  
  71. #if OBJC_BLOCKS
  72. - do:aBlock;
  73. - do:aBlock until:(BOOL*)flag;
  74. #endif /* OBJC_BLOCKS */
  75.  
  76. @end
  77.  
  78. #endif /* __CLTN_H__ */
  79.  
  80.  
  81.